package com.szholly.plug.form.excel.model;

/**
 * 定义列属性
 */
public class ColumnProperty {
	private boolean isPrimaryKey = false;// 是否为主键
	private String columnName = "";// 数据库列名称
	private String headerText = "";// 对应的excel列头名称
	private String required = "false";// 是否为必填字段
	private String dataType = "string";// 数据类型（默认为string类型）
	private String defaultValue = "";// 默认值(对应excel此列的值如果为空则会使用此值来导入)
	private String dataFormat = "";// 日期格式
	private String digit = "0";// 小数位数
	private String isParam = "false";
	private int dataLength = 5000;// 数据长度（默认为5000）
	private String comment = "";// 字段说明信息（非必要属性）
	private int rowPosition = 0;// 行位置 从0开始
	private int cellPosition = 0;// 列位置 从0开始
	private int sheet = 0;// sheet页 从0开始
	private DictionaryEntity dictEntity = null;// 对应的代码表

	public boolean isPrimaryKey() {
		return isPrimaryKey;
	}

	public void setPrimaryKey(boolean isPrimaryKey) {
		this.isPrimaryKey = isPrimaryKey;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getHeaderText() {
		return headerText;
	}

	public void setHeaderText(String headerText) {
		this.headerText = headerText;
	}

	public String getRequired() {
		return required;
	}

	public void setRequired(String required) {
		this.required = required;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public int getDataLength() {
		return dataLength;
	}

	public void setDataLength(int dataLength) {
		this.dataLength = dataLength;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public int getCellPosition() {
		return cellPosition;
	}

	public void setCellPosition(int cellPosition) {
		this.cellPosition = cellPosition;
	}

	public int getRowPosition() {
		return rowPosition;
	}

	public void setRowPosition(int rowPosition) {
		this.rowPosition = rowPosition;
	}

	public int getSheet() {
		return sheet;
	}

	public void setSheet(int sheet) {
		this.sheet = sheet;
	}

	public DictionaryEntity getDictEntity() {
		return dictEntity;
	}

	public void setDictEntity(DictionaryEntity dictEntity) {
		this.dictEntity = dictEntity;
	}

	public String getDataFormat() {
		return dataFormat;
	}

	public void setDataFormat(String dataFormat) {
		this.dataFormat = dataFormat;
	}

	public String getDigit() {
		return digit;
	}

	public void setDigit(String digit) {
		this.digit = digit;
	}

	public String getIsParam() {
		return isParam;
	}

	public void setIsParam(String isParam) {
		this.isParam = isParam;
	}

}
